/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pwned.objects;

/**
 *
 * @author Zlobniy
 */
public class Target {
    
    Integer x;
    Integer y;
    Integer z;
    Integer distance;
    boolean newTarget;
    boolean b2;
    boolean b3;
    
    public Target( final Integer x, final Integer y, final Integer z, final Integer distance, final boolean newTarget, final boolean b2, final boolean b3 ){
        this.x = x;
        this.y = y;
        this.z = z;
        this.distance = distance;
        this.newTarget = newTarget;
        this.b2 = b2;
        this.b3 = b3;
    }
    
    public Target(  ){
        
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public Integer getZ() {
        return z;
    }

    public void setZ(Integer z) {
        this.z = z;
    }

    public Integer getDistance() {
        return distance;
    }

    public void setDistance(Integer distance) {
        this.distance = distance;
    }

    public boolean isNewTarget() {
        return newTarget;
    }

    public void setNewTarget(boolean newTarget) {
        this.newTarget = newTarget;
    }

    public boolean isB2() {
        return b2;
    }

    public void setB2(boolean b2) {
        this.b2 = b2;
    }

    public boolean isB3() {
        return b3;
    }

    public void setB3(boolean b3) {
        this.b3 = b3;
    }
    
    public boolean isTarget( int address ){
        return x == address;
    }
    
    @Override
    public String toString(){
        StringBuilder builder = new StringBuilder();
        builder.append("X: ");
        builder.append(this.x);
        
        return builder.toString();
    }
    
}
